package com.mine.reflect;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

@Data
@NoArgsConstructor
public class User1<T> {
    private Integer id;
    private String name;

    private User1(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public void testGeneric1(Map<String, User1> map, List<User1> list) {
        System.out.println("testGeneric1");
    }

    public Map<String, User1> testGeneric2() {
        System.out.println("testGeneric2");
        return null;
    }
}
